package com.ruoyi.cms.article.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.cms.article.domain.CmsArticle;
import com.ruoyi.cms.article.domain.CmsArticleTag;
import com.ruoyi.cms.article.domain.CmsArticleType;

import java.util.List;


public interface CmsArticleTypeMapper extends BaseMapper<CmsArticleType> {
    /**
     * 批量新增
     */
    public int batchArticleType(List<CmsArticleType> articleTypeList);

    /**
     * 通过articleID删除article文件关联
     */
    public int deleteArticleTypeByArticleId(Long articleId);

    /**
     * 批量删除article文件关联
     */
    public int deleteArticleType(Long[] ids);

    /**
     * 查询文章列表
     */
    public List<CmsArticleType> selectArticleTypeList(Long articleId);

    /**
     * 通过typeId删除article文件关联
     */
    public int deleteArticleTypeByTypeId(Long typeId);

    /**
     * 通过typeId统计article数量
     */
    public int countArticleByTypeId(Long typeId);


}
